#pragma once

#include <cstring>

//货物类
class Goods 
{ 

public:
	Goods(int w)
    { 
        this->weight = w ;  
        total_weight += w ; 
        next = NULL;
    }
	~Goods() 
    {
         total_weight -= this->weight ; 
    }
public:   
	int  Weight();

	Goods *next ;
    static int TotalWeight() ;
private:
	int weight;
	static int total_weight ;    
};


